//
// Created by 24100 on 2022/3/23.
//

#ifndef TRANSFORM_GEOSPHERE_H
#define TRANSFORM_GEOSPHERE_H
#include "Geometry.h"

class GeoSphere:public Geometry
{
	static constexpr float PI=3.1415;
public:
	GeoSphere(float mRadius=1.0, float mWSegments=32.0, float mHeightSegments=16.0, float mPhiStart= 0.0f, float mPhiLength=PI * 2.0f,
	          float mThetaStart=  0.0f, float mThetaLength=PI);
private:
	void makeData() override;
	float m_radius;
	float m_wSegments;
	float m_hSegments;
	float m_phiStart;
	float m_phiLength;
	float m_thetaStart;
	float m_thetaLength;
};


#endif //TRANSFORM_GEOSPHERE_H
